package com.nthink.indicators.mapper.qualitymanagement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nthink.indicators.pojo.qualitymanagement.BaseIndex;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;

@Mapper
public interface BaseIndexMapper extends BaseMapper<BaseIndex> {
    public Integer getNoOperationPatientCount(Date startTime, Date endTime);

    public Integer getInPatientCount(Date startTime, Date endTime);

    public Integer getDeathPatientCount(Date startTime, Date endTime);

    public Integer getInRegAgainCount(Date startTime, Date endTime);

    public Integer getAvgInDays(Date startTime, Date endTime);

    public double getAvgInTotalFee(Date startTime, Date endTime);

    public Integer getOperationCount(Date startTime, Date endTime);

    public Integer getOperationDeathCount(Date startTime, Date endTime);

    public double getAvgDaysBeforeOperation(Date startTime, Date endTime);

    public double getOperationPatientAvgFee(Date startTime, Date endTime);
}


